import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.pentalog.training.soap.spring.HelloWorldService;
import com.pentalog.training.soap.webservice.HelloWorldWS;
import com.pentalog.training.soap.webservice.HelloWorldWSImpl;


public class App {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		ApplicationContext appContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		HelloWorldService helloWorldService = appContext.getBean("helloWorldService", HelloWorldService.class);
		HelloWorldWS helloWorldWS = appContext.getBean("helloWorldWS", HelloWorldWSImpl.class);
		System.out.println(helloWorldService.getHelloMessage());
		System.out.println(helloWorldWS.getSayHello("tlehuu"));
    	
	}

}
